var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

//	var aHref = this.href;
//	if( aHref=="" || aHref==undefined ){
//			$(this).attr("href","javascript:void(0)");
//	}
//
//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});
/**
* 图片处理片段
*/

$('img[src="./yjyb_160648/images/P020200108300715478466.jpg"]').attr('title','预警提示').attr('alt','预警提示');$('img[src="./images/newmap_lv_20180615.png"]').attr('title','各市基层地图').attr('alt','各市基层地图');$('img[src="./ztzl/smzskxjy/images/P020180209403988417247.png"]').attr('title','“生命至上、科学救援”安全生产应急救援主题公益宣传').attr('alt','“生命至上、科学救援”安全生产应急救援主题公益宣传');$('img[src="./images/close140403.gif"]').attr('title','关闭').attr('alt','关闭');$('img[src="./ztzl/hxp/images/P020180629504871000352.jpg"]').attr('title','吉林省危险化学品安全综合治理').attr('alt','吉林省危险化学品安全综合治理');$('img[src="./images/yjt-zwyx-1.png"]').attr('title','政务邮箱').attr('alt','政务邮箱');$('img[src="./sylm/ywdt/201902/W020190202362501049420.jpg"]').attr('title','景俊海到省应急管理厅调研并看望慰问基层消防员').attr('alt','景俊海到省应急管理厅调研并看望慰问基层消防员');$('img[src="./ztzl/201902/W020190228530382672078.png"]').attr('title','吉林省冬春安全整治大会战').attr('alt','吉林省冬春安全整治大会战');$('img[src="./sylm/ywdt/tplb/201904/W020190423383472137555.jpg"]').attr('title','国务院互联网+督查').attr('alt','国务院互联网+督查');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./images/zk_jlsafety_lv.png"]').attr('title','展开').attr('alt','展开');$('img[src="./ztzl/201902/W020190228529727656244.png"]').attr('title','安全生产应急救援主题公益宣传').attr('alt','安全生产应急救援主题公益宣传');$('img[src="./zwyw/yjyw/pic_news/201911/W020191230562547497078.jpg"]').attr('title','景俊海:提高政治站位强化有效举措 守住风险底线推动安全发展').attr('alt','景俊海:提高政治站位强化有效举措 守住风险底线推动安全发展');$('img[src="./images/aqsc_jlsafety_lv.jpg"]').attr('title','安全生产举报投诉').attr('alt','安全生产举报投诉');$('img[src="./zwyw/yjyw/201912/W020191223385020079979.jpg"]').attr('title','吉林省政府召开全省安全生产集中整治工作动员部署视频会议').attr('alt','吉林省政府召开全省安全生产集中整治工作动员部署视频会议');$('img[src="./ztzl/xytxjs/images/P020190710377101412665.jpg"]').attr('title','信用体系建设').attr('alt','信用体系建设');$('img[src="./jzzm/images/P020191111390946198842.png"]').attr('title','警钟长鸣').attr('alt','警钟长鸣');$('img[src="./images/sjdzt_lv201810192.gif"]').attr('title','吉林省应急管理厅机关党建专栏').attr('alt','吉林省应急管理厅机关党建专栏');$('img[src="./zwyw/yjyw/pic_news/201911/W020191230566254256509.jpg"]').attr('title','吉林省应急管理厅党组迅速传达学习贯彻党的十九届四中全会精神').attr('alt','吉林省应急管理厅党组迅速传达学习贯彻党的十九届四中全会精神');$('img[src="./images/jgpt_jlsafety_lv20181019.jpg"]').attr('title','吉林省应急管理综合信息平台').attr('alt','吉林省应急管理综合信息平台');$('img[src="./ztzl/qhfz/images/P020190606599689213537.jpg"]').attr('title','“不忘初心、牢记使命”主题教育').attr('alt','“不忘初心、牢记使命”主题教育');$('img[src="./ztzl/2019hdzt/images/P020190606328849240203.jpg"]').attr('title','2019年“安全生产月”和“白山松水安全行”专题').attr('alt','2019年“安全生产月”和“白山松水安全行”专题');$('img[src="./images/yjglt-xxbsxt-20190225.png"]').attr('title','信息报送统计').attr('alt','信息报送统计');$('img[src="./sylm/ywdt/201811/W020181115215027547026.jpg"]').attr('title','巴音朝鲁调研应急管理工作时强调 深入贯彻习近平总书记重要论述精神 开创应急管理事业改革发展新局面').attr('alt','巴音朝鲁调研应急管理工作时强调 深入贯彻习近平总书记重要论述精神 开创应急管理事业改革发展新局面');$('img[src="./images/spxt_jlsafety_lv20181022.gif"]').attr('title','网上审批大厅').attr('alt','网上审批大厅');$('img[src="./qt/xfc/201907/W020190709492692764212.jpg"]').attr('title','机关作风评议通道').attr('alt','机关作风评议通道');$('img[src="./ztzl/aqscdjc/images/P020170818401540579732.jpg"]').attr('title','开展安全生产大检查 加大处罚惩戒曝光行').attr('alt','开展安全生产大检查 加大处罚惩戒曝光行');$('img[src="./qt/xfc/201812/W020181206555224001228.jpg"]').attr('title','吉林应急管理二维码').attr('alt','吉林应急管理二维码');$('img[src="./yjyb_160648/images/P020191025611284642069.png"]').attr('title','预警预报').attr('alt','预警预报');$('img[src="./kzyy/images/P020191107570794518547.png"]').attr('title','吉林省应急管理厅').attr('alt','吉林省应急管理厅');$('img[src="./kpg/images/P020191025497134327851.png"]').attr('title','科普馆').attr('alt','科普馆');$('img[src="./images/top_jlsafety_lv.png"]').attr('title','收起').attr('alt','收起');$('img[src="./ztzl/wgyzl/images/P020180730529205194697.png"]').attr('title','全省安全生产“五个一工程”建设活动').attr('alt','全省安全生产“五个一工程”建设活动');$('img[src="./images/yjglt-ztzl-20190225.png"]').attr('title','应急专题').attr('alt','应急专题');$('img[src="./ztzl/2019hdzt/images/P020190605366905802346.jpg"]').attr('title','2019年“安全生产月”和“白山松水安全行”专题').attr('alt','2019年“安全生产月”和“白山松水安全行”专题');$('img[src="./ztzl/hbdt/images/P020170816380216034642.jpg"]').attr('title','中央环保督查进行时').attr('alt','中央环保督查进行时');$('img[src="./images/icon-ga.png"]').attr('title','吉公网安备标识').attr('alt','吉公网安备标识');$('img[src="./kzyy/wzbq/images/P020190307294107888302.png"]').attr('title','微信公众号二维码').attr('alt','微信公众号二维码');$('img[src="./sylm/ywdt/201906/W020190612355321965123.jpg"]').attr('title','景俊海检查调度防汛应急工作').attr('alt','景俊海检查调度防汛应急工作');$('img[src="./jzzm/images/P020191111392890357388.png"]').attr('title','安全生产举报电话12350，消防救援电话119，森林消防救援电话12119').attr('alt','安全生产举报电话12350，消防救援电话119，森林消防救援电话12119');$('img[src="./images/beianicon_lv20180129.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./sylm/ywdt/201811/W020181102510671961243.jpg"]').attr('title','省政府新闻办召开《吉林省党政领导干部安全生产责任制实施细则》新闻发布会').attr('alt','省政府新闻办召开《吉林省党政领导干部安全生产责任制实施细则》新闻发布会');$('img[src="./images/aaa_jlsafety_lv.png"]').attr('title','聚焦十九大精神实质 强化党的政治建设统领').attr('alt','聚焦十九大精神实质 强化党的政治建设统领');$('img[src="./ztzl/zzdhz/images/P020181110739395361543.jpg"]').attr('title','吉林省冬春安全整治大会战').attr('alt','吉林省冬春安全整治大会战');$('img[src="./zwyw/yjyw/pic_news/201912/W020191230567064058332.jpg"]').attr('title','吉林省应急管理厅召开党组理论学习中心组学习（扩大）会议').attr('alt','吉林省应急管理厅召开党组理论学习中心组学习（扩大）会议');$('img[src="./ztzl/bwcxljsm/images/P020191224509570692989.gif"]').attr('title','吉林省应急管理厅机关党建专栏').attr('alt','吉林省应急管理厅机关党建专栏');$('img[src="./images/yjglt-more-20190225.png"]').attr('title','更多按钮').attr('alt','更多按钮');$('img[src="./images/07135705ow9k_jlsafety_lv20190326.jpg"]').attr('title','吉林省纪委吉林省监委驻省应急管理厅纪检监察组举报信箱').attr('alt','吉林省纪委吉林省监委驻省应急管理厅纪检监察组举报信箱');$('img[src="./sylm/ywdt/201810/W020181021511618414946.jpg"]').attr('title','吉林省应急管理厅正式挂牌 霍云成任省应急管理厅党组书记、厅长').attr('alt','吉林省应急管理厅正式挂牌 霍云成任省应急管理厅党组书记、厅长');$('img[src="./ztzl/84592/images/P020171229501324027268.png"]').attr('title','新《吉林省安全生产条例》出台！2018年3月1日期实施').attr('alt','新《吉林省安全生产条例》出台！2018年3月1日期实施');$('img[src="./yqlj/images/P020191025611099515180.png"]').attr('title','对党忠诚 纪律严明 赴汤蹈火 竭诚为民').attr('alt','对党忠诚 纪律严明 赴汤蹈火 竭诚为民');$('img[src="./ztzl/201912/W020191224513524974624.jpg"]').attr('title','信用体系建设').attr('alt','信用体系建设');$('img[src="http://121.43.68.40/exposure/images/jiucuo.png?v=2200000056"]').attr('title','无效图片').attr('alt','无效图片');$('img[src="./images/gh_jlsafety_lv.png"]').attr('title','国徽图标').attr('alt','国徽图标');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/
$(".yjgl-search input[type='submit']").attr("title","查询");
/**
* 主导航
*/


// -----------------------------主导航 开始 -----------------------
// 机构概况
$(".nav-box1 li:eq(1) span a").focus(function(){
if($(".nav-box1 li:eq(1) b").is(":hidden")){
$(".nav-box1 li:eq(1)").mouseover();
}
});
$(".nav-box1 li:eq(1) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box1 li:eq(1)").mouseout();
}
});
});
$(".nav-box1 li:eq(1) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_1");
});

//政务公开
$(".nav-box1 li:eq(2) span a").focus(function(){
if($(".nav-box1 li:eq(2) b").is(":hidden")){
$(".nav-box1 li:eq(2)").mouseover();
}
$(document).bind("keydown.navKeydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box1 li:eq(1)").mouseover();
$(".nav-box1 li:eq(1) b a").last().focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
$(".nav-box1 li:eq(2) span a").blur(function(){
$(document).unbind("keydown.navKeydown_2");
});
$(".nav-box1 li:eq(2) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box1 li:eq(2)").mouseout();
}
});
});
$(".nav-box1 li:eq(2) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_3");
});

//交流互动
$(".nav-box1 li:eq(3) span a").focus(function(){
if($(".nav-box1 li:eq(3) b").is(":hidden")){
$(".nav-box1 li:eq(3)").mouseover();
}
$(document).bind("keydown.navKeydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box1 li:eq(2)").mouseover();
$(".nav-box1 li:eq(2) b a").last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
$(".nav-box1 li:eq(3) span a").blur(function(){
$(document).unbind("keydown.navKeydown_4");
});

$(".nav-box1 li:eq(3) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box1 li:eq(3)").mouseout();
}
});
});
$(".nav-box1 li:eq(3) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_5");
});
// 搜索
$(".yjgl-search_sl").focus(function(){
$(document).bind("keydown.navKeydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box1 li:eq(3)").mouseover();
$(".nav-box1 li:eq(3) b a").last().focus();
return false;
}
});
});

$(".yjgl-search_sl").blur(function(){
$(document).unbind("keydown.navKeydown_6");
});
//-----------------------------主导航 结束 -----------------------


/**
* 网站所有幻灯片
*/

//轮播,右下角原点--鼠标点击触发情况

//轮播：只获取轮播中一个a标签。
//以文字a标签为主，图片a标签尽量不要，title不稳定
_EsdDynamicTransformationScript.slidePointInterval = setInterval(function () {
if ($(".flex-control-nav li:eq(3) a")[0] != undefined) {
clearInterval(_EsdDynamicTransformationScript.slidePointInterval);
//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $("#yjgl-home_slider .yjgl-more a");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".flex-viewport .slides li:eq(1) .caption a");
_EsdDynamicTransformationScript.esdTagANum2 = $(".flex-viewport .slides li:eq(2) .caption a");
_EsdDynamicTransformationScript.esdTagANum3 = $(".flex-viewport .slides li:eq(3) .caption a");
_EsdDynamicTransformationScript.esdTagANum4 = $(".flex-viewport .slides li:eq(4) .caption a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".flex-control-nav li:eq(0) a");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".flex-control-nav li:eq(1) a");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".flex-control-nav li:eq(2) a");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".flex-control-nav li:eq(3) a");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".yjgl-banner .tab-xxk .yjgl_ty a:eq(0)");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(document).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
if(_EsdDynamicTransformationScript.esdTagANum1.length!=0){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(document).unbind("keydown.keydown_0");
});

//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum1.click();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum2.click();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum3.click();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum4.click();
$(document).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(document).unbind("keydown.keydown_4");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {

$(document).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(document).unbind("keydown.keydown_5");
});
}
}, 500);


if(location.href == "http://yjt.jl.gov.cn/" || location.href == "http://yjt.jl.gov.cn/index.html"){

//第一部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".tab-xxk dd:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".tab-xxk dd:eq(1) a").length-1;
_EsdDynamicTransformationScript.num3 = $(".tab-xxk dd:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".tab-xxk .yjgl_ty a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".tab-xxk .yjgl_ty a:eq(1)");
_EsdDynamicTransformationScript.esd1TagNum3 = $(".tab-xxk .yjgl_ty a:eq(2)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".tab-xxk dd:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".tab-xxk dd:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $(".tab-xxk dd:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".tab-xxk dd:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".tab-xxk dd:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $(".tab-xxk dd:eq(2) a:eq("+_EsdDynamicTransformationScript.num3+")");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});


//第二部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num4 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) a").length-1;
_EsdDynamicTransformationScript.num5 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(1) a").length-1;
_EsdDynamicTransformationScript.num6 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $(".box-w1200 .tab-xxk .yjgl_tw a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2 = $(".box-w1200 .tab-xxk .yjgl_tw a:eq(1)");
_EsdDynamicTransformationScript.esd2TagNum3 = $(".box-w1200 .tab-xxk .yjgl_tw a:eq(2)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum3Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(1) a:eq("+_EsdDynamicTransformationScript.num5+")");
_EsdDynamicTransformationScript.esd2TagNum3ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) a:eq("+_EsdDynamicTransformationScript.num6+")");

//第一块
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd2TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd2TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

//第三部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num7 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(0) a").length-1;
_EsdDynamicTransformationScript.num8 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(1) a").length-1;
_EsdDynamicTransformationScript.num9 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .tab-gwtg a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .tab-gwtg a:eq(1)");
_EsdDynamicTransformationScript.esd3TagNum3 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .tab-gwtg a:eq(2)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(0) a:eq("+_EsdDynamicTransformationScript.num7+")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(1) a:eq("+_EsdDynamicTransformationScript.num8+")");
_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(0) .list_ty:eq(2) a:eq("+_EsdDynamicTransformationScript.num9+")");

//第一块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

//第四部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num10 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(0) a").length-1;
_EsdDynamicTransformationScript.num11 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(1) a").length-1;
_EsdDynamicTransformationScript.num12 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(2) a").length-1;
_EsdDynamicTransformationScript.num13 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(3) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .tab-mtbd a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .tab-mtbd a:eq(1)");
_EsdDynamicTransformationScript.esd4TagNum3 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .tab-mtbd a:eq(2)");
_EsdDynamicTransformationScript.esd4TagNum4 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .tab-mtbd a:eq(3)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum3Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum4Content1 = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(0) a:eq("+_EsdDynamicTransformationScript.num10+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(1) a:eq("+_EsdDynamicTransformationScript.num11+")");
_EsdDynamicTransformationScript.esd4TagNum3ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(2) a:eq("+_EsdDynamicTransformationScript.num12+")");
_EsdDynamicTransformationScript.esd4TagNum4ContentN = $(".box-w1200 .tab-xxk .yjgl_tr:eq(2) .lsn:eq(3) a:eq("+_EsdDynamicTransformationScript.num13+")");

//第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd4TagNum3Content1.focus(function () {
$(document).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd4TagNum3Content1.blur(function () {
$(document).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus(function () {
$(document).bind("keydown.keydown_e3", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3ContentN.blur(function () {
$(document).unbind("keydown.keydown_e3");
});


//第四块
_EsdDynamicTransformationScript.esd4TagNum4.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum4Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum4.blur(function () {
$(document).unbind("keydown.keydown_4");
});

//---------------------友情链接  开始---------------------------------
// 应急管理部及各省（市）应急管理厅（局）
$(".nav-box3 .fl li:eq(0) span a").focus(function(){
if($(".nav-box3 .fl li:eq(0) b").is(":hidden")){
$(".nav-box3 .fl li:eq(0)").mouseover();
}

$(document).bind("keydown.navKeydownyjb_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box3 .fl li:eq(0)").mouseout();
}else if (e.keyCode == 9) {

}
});
});
$(".nav-box3 .fl li:eq(0) span a").blur(function(){
$(document).unbind("keydown.navKeydownyjb_2");
});

$(".nav-box3 li:eq(0) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_21", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box3 li:eq(0)").mouseout();
}
});
});
$(".nav-box3 li:eq(0) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_21");
});

// 各市（州）应急管理局
$(".nav-box3 li:eq(1) span a").focus(function(){
if($(".nav-box3 li:eq(1) b").is(":hidden")){
$(".nav-box3 li:eq(1)").mouseover();
}
$(document).bind("keydown.navKeydown_22", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box3 li:eq(0)").mouseover();
$(".nav-box3 li:eq(0) b a").last().focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
$(".nav-box3 li:eq(1) span a").blur(function(){
$(document).unbind("keydown.navKeydown_22");
});
$(".nav-box3 li:eq(1) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_23", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box3 li:eq(1)").mouseout();
}
});
});
$(".nav-box3 li:eq(1) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_23");
});

// 其他链接
$(".nav-box3 li:eq(2) span a").focus(function(){
if($(".nav-box3 li:eq(2) b").is(":hidden")){
$(".nav-box3 li:eq(2)").mouseover();
}
$(document).bind("keydown.navKeydown_24", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box3 li:eq(1)").mouseover();
$(".nav-box3 li:eq(1) b a").last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
$(".nav-box3 li:eq(2) span a").blur(function(){
$(document).unbind("keydown.navKeydown_24");
});

$(".nav-box3 li:eq(2) b a").last().focus(function(){
$(document).bind("keydown.navKeydown_25", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
$(".nav-box3 li:eq(2)").mouseout();
}
});
});
$(".nav-box3 li:eq(2) b a").last().blur(function(){
$(document).unbind("keydown.navKeydown_25");
});

// 广告链接
$("#ad1 a").focus(function(){
$(document).bind("keydown.navKeydown_26", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(".nav-box3 li:eq(2)").mouseover();
$(".nav-box3 li:eq(2) b a").last().focus();
return false;
}
});
});

$("#ad1 a").blur(function(){
$(document).unbind("keydown.navKeydown_26");
});

//---------------------友情链接  结束---------------------------------

//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
if(iframeObj != undefined){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".tab-zyxxzz a:eq(0)");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".tab-zyxxzz a:eq(1)");  // 需要修改 这里的tab获取

// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".box-bszn a:last").focus();
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(document).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(document).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(document).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(document).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}

}
/**
* 二级页
*/

// -------------------------------二级页------------------------------------
if(location.href=="http://yjt.jl.gov.cn/zmhd/zxzx/"){ //在线咨询
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);
var zxzxIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(zxzxIframe).find("#frmData input:eq(0)").attr({placeholder:"标题", title: "标题"});
$(zxzxIframe).find("#frmData input:eq(1)").attr({placeholder:"咨询人", title: "咨询人"});
$(zxzxIframe).find("#frmData input:eq(2)").attr({placeholder:"咨询电话", title: "咨询电话"});
$(zxzxIframe).find("#frmData input:eq(3)").attr({placeholder:"咨询时间", title: "咨询时间"});
$(zxzxIframe).find("#frmData select:eq(0)").attr({title: "咨询类型"});
}
}, 500);
}

/**
* 共通底部处理
*/


if(location.href == "http://yjt.jl.gov.cn/" || location.href == "http://yjt.jl.gov.cn/index.html"){

//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".yjgl-nav";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".nav-box1";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".foot-h122";
_EsdDynamicTransformationScript.navBlock.selector.main = ".box-w1200:eq(2)";
_EsdDynamicTransformationScript.navBlock.selector.left = "";
_EsdDynamicTransformationScript.navBlock.selector.right = "";
_EsdDynamicTransformationScript.navBlock.selector.content = "";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".yjgl-nav", ".nav-box1", ".yjgl-search", ".box-w1200:eq(1)", ".box-w1200:eq(2)", "#yjgl-home_slider", ".tab-xxk:eq(0)",
".tab-xxk:eq(1)", ".box-bszn", ".yjgl-right", ".yjgl-line3", ".gdzt-1116", ".box-o1200:eq(1)", ".bottom-nav",
"#left", "#right", "#zoom>.TRS_Editor", ".foot-h122"
]

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}

}

//目录页
if( $("#left").length>0 ){

//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".yjgl-nav";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".nav-box1";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".foot-h122";
_EsdDynamicTransformationScript.navBlock.selector.main = ".box-w1200:eq(1)";
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
_EsdDynamicTransformationScript.navBlock.selector.content = "";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".yjgl-nav", ".nav-box1", ".yjgl-search", ".box-w1200:eq(1)", ".box-w1200:eq(2)", "#yjgl-home_slider", ".tab-xxk:eq(0)",
".tab-xxk:eq(1)", ".box-bszn", ".yjgl-right", ".yjgl-line3", ".gdzt-1116", ".box-o1200:eq(1)", ".bottom-nav",
"#left", "#right", "#zoom>.TRS_Editor", ".foot-h122","yjgl-dqwz"
]

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}

}


//内容页
if( $(".yjgl-page").length>0 ){

//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".yjgl-nav";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".nav-box1";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".foot-h122";
_EsdDynamicTransformationScript.navBlock.selector.main = ".yjgl-page";
_EsdDynamicTransformationScript.navBlock.selector.left = "";
_EsdDynamicTransformationScript.navBlock.selector.right = "";
_EsdDynamicTransformationScript.navBlock.selector.content = "#zoom";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".yjgl-nav", ".nav-box1", ".yjgl-search", ".box-w1200:eq(1)", ".box-w1200:eq(2)", "#yjgl-home_slider", ".tab-xxk:eq(0)",
".tab-xxk:eq(1)", ".box-bszn", ".yjgl-right", ".yjgl-line3", ".gdzt-1116", ".box-o1200:eq(1)", ".bottom-nav",
"#left", "#right", "#zoom>.TRS_Editor", ".foot-h122",".yjgl-page",".yjgl-dqwz"
]

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}

}




/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
